package com.example.njupt.helper;

import com.example.njupt.constant.AppStatusConstant;

/**
 * Author:      mwang
 * Create Date: Created in 2021/4/23 11:00
 * Update Date:
 * Modified By:
 * Description:
 */
public class AppStatusHelper {

    //APP状态 初始值为没启动 不在前台状态
    public int appStatus = AppStatusConstant.STATUS_FORCE_KILLED;
    private static AppStatusHelper appStatusHelper;

    public static AppStatusHelper getInstance(){
        if (appStatusHelper == null){
            appStatusHelper = new AppStatusHelper();
        }
        return appStatusHelper;
    }

    public int getAppStatus() {
        return appStatus;
    }

    public void setAppStatus(int appStatus) {
        this.appStatus = appStatus;
    }
}
